package cn.bb.service;

import cn.bb.dao.IPersonDao;
import cn.bb.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("personService")
public class IPersonServiceImpl implements IPersonService {
    @Autowired
    @Qualifier(value = "personDao")
    private IPersonDao iPersonDao;
    @Override
    public List<Person> search() {
        return iPersonDao.search();
    }

    public IPersonDao getiPersonDao() {
        return iPersonDao;
    }

    public void setiPersonDao(IPersonDao iPersonDao) {
        this.iPersonDao = iPersonDao;
    }
}
